.list{
    height: 300px;
    overflow: auto;
}
.child:nth-child(2n){
    background-color: lightblue;
}
.child:nth-child(2n+1){
    background-color: greenyellow;
}